package Java8实战._2_Stream_使用流._2_映射;

import java.util.Arrays;
import java.util.List;

public class _2_流的扁平化1 {

    public static void main(String[] args) {
        List<String> list = Arrays.asList("Hello","World");

        list.stream()
                .map((String str) -> str.split(""))
                .distinct()
                .forEach((String[] strs) -> {
                    for (int i = 0; i < strs.length; i++) {
                        System.out.print(strs[i] + " ");
                    }
                });


    }




}
